<?php

if (!defined('ROOT')) {
	
	define('HTACCESS', true);
	define('DS', DIRECTORY_SEPARATOR);
	define('ROOT', dirname(dirname(__FILE__)).DS);
	define('S', '/');
	define('BASE', str_replace(DS, S, substr(ROOT,strlen($_SERVER['DOCUMENT_ROOT']))));
	define('URL', BASE);
	
}

define('APP_DIR', 'app');
define('APP', ROOT.APP_DIR.DS);

include ROOT.'engine'.DS.'engine.php';

?>